using System;
using System.Data;
using System.Collections.Generic;
using System.ServiceModel;
using eTMS.DAO;
namespace eTMS.Services{
	/********************************BEGIN UsersServiceBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:12/09/2010 36:08:02</para>
	/// <para>Class Name: UsersServiceBase</para>
	/// <para>Description: </para>
	///</summary>

	
	public partial class UsersService : IUsersService{


		#region Select functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectOne</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: UsersEntity</para>
		///</summary>
		public UsersEntity SelectOne(int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.SelectOne(User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectOneByUserName</para>
		/// <para>Input: UserName</para>
		/// <para>Output: UsersEntity</para>
		///</summary>
		public UsersEntity SelectOneByUserName(string UserName){
			UsersDAO dao = new UsersDAO();
			return dao.SelectOneByUserName(UserName);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of UsersEntity</para>
		///</summary>
		public List<UsersEntity> SelectAll(){
			UsersDAO dao = new UsersDAO();
			return dao.SelectAll();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDS(){
			UsersDAO dao = new UsersDAO();
			return dao.SelectAllDS();
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAll</para>
		/// <para>Input: </para>
		/// <para>Output: List of UsersEntity</para>
		///</summary>
		public List<UsersEntity> SelectAllFilter(string strFilter){
			UsersDAO dao = new UsersDAO();
			return dao.SelectAllFilter(strFilter);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SelectAllDS</para>
		/// <para>Input: </para>
		/// <para>Output: DataSet</para>
		///</summary>
		public DataSet SelectAllDSFilter(string strFilter){
			UsersDAO dao = new UsersDAO();
			return dao.SelectAllDSFilter(strFilter);
		}
		#endregion

		#region Insert functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: UsersEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Save(UsersEntity o){
			UsersDAO dao = new UsersDAO();
			return dao.Save(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Save</para>
		/// <para>Input: UsersEntity</para>
		/// <para>Output: UsersEntity</para>
		///</summary>
		public UsersEntity SaveRet(UsersEntity o){
			UsersDAO dao = new UsersDAO();
			dao.Save(o);
			return o;
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveList</para>
		/// <para>Input: List of UsersEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void SaveList(List<UsersEntity> list){
			UsersDAO dao = new UsersDAO();
			dao.SaveList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: SaveListRet</para>
		/// <para>Input: List of UsersEntity</para>
		/// <para>Output: List of UsersEntity</para>
		///</summary>
		public List<UsersEntity> SaveListRet(List<UsersEntity> list){
			this.SaveList(list);
			return list;
		}
		#endregion

		#region Update functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Update</para>
		/// <para>Input: UsersEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Update(UsersEntity o){
			UsersDAO dao = new UsersDAO();
			return dao.Update(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateList</para>
		/// <para>Input: List of UsersEntity</para>
		/// <para>Output: </para>
		///</summary>
		public void UpdateList(List<UsersEntity> list){
			UsersDAO dao = new UsersDAO();
			dao.UpdateList(list);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateUserName</para>
		/// <para>Input: NewUserName,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateUserName(string NewUserName,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdateUserName(NewUserName,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdatePassword</para>
		/// <para>Input: NewPassword,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdatePassword(string NewPassword,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdatePassword(NewPassword,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateDisplayName</para>
		/// <para>Input: NewDisplayName,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateDisplayName(string NewDisplayName,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdateDisplayName(NewDisplayName,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateUserType</para>
		/// <para>Input: NewUserType,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateUserType(Byte NewUserType,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdateUserType(NewUserType,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateEmail</para>
		/// <para>Input: NewEmail,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateEmail(string NewEmail,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdateEmail(NewEmail,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdatePhone</para>
		/// <para>Input: NewPhone,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdatePhone(string NewPhone,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdatePhone(NewPhone,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateEmployee_ID</para>
		/// <para>Input: NewEmployee_ID,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateEmployee_ID(int NewEmployee_ID,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdateEmployee_ID(NewEmployee_ID,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateIsOnline</para>
		/// <para>Input: NewIsOnline,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateIsOnline(bool NewIsOnline,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdateIsOnline(NewIsOnline,User_ID);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: UpdateActived</para>
		/// <para>Input: NewActived,User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool UpdateActived(bool NewActived,int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.UpdateActived(NewActived,User_ID);
		}
		#endregion

		#region Delete functions
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: Delete</para>
		/// <para>Input: UsersEntity</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool Delete(UsersEntity o){
			UsersDAO dao = new UsersDAO();
			return dao.Delete(o);
		}
		///<summary>
		/// <para>Author: Auto generated by CSharp Code Generator v2.0</para>
		/// <para>Date:12/09/2010 36:08:02</para>
		/// <para>Name: DeleteByID</para>
		/// <para>Input: User_ID</para>
		/// <para>Output: return true if succeeded else return false</para>
		///</summary>
		public bool DeleteByID(int User_ID){
			UsersDAO dao = new UsersDAO();
			return dao.DeleteByID(User_ID);
		}
		#endregion

		#region Select,delete by User_ID functions
		#endregion
	}
	/*****************************************************************************************************/
	/**********************************END UsersWebServiceBase*****************************************/
	/*****************************************************************************************************/
}

